<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
                    <li class="nav-item has-treeview 
	                    {switch controller}
	                        {case value="site|field|chat|ad|keyword|navigation|area|module|filemanage|sitemap"}menu-open{/case}
	                    {/switch}
	                    {if $controller eq 'attribute'}menu-open{/if}
                    ">
                        <a href="#" class="nav-link 
                            {switch controller}
		                        {case value="site|field|chat|ad|keyword|navigation|area|module|filemanage|sitemap"}active{/case}
		                    {/switch}
		                    {if $controller eq 'attribute'}active{/if}
	                    ">
                            <i class="fas fa-globe-americas nav-icon"></i><p>{:lang('v_global')}<i class="right fas fa-angle-left mt-2"></i></p>
                        </a>
                        <ul class="nav nav-treeview">
                        	<!-- 全局管理 开始 -->
                        	<!-- 网站设置 -->
	                        {if config('app.isdisplay.site') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/site/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="site"}active{/eq}">
	                                    <i class="fas fa-cog nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_site_setting')}
	                                    	{eq name="controller" value="site"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!-- 字段 -->
	                        {if config('app.isdisplay.field') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/field/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="field"}active{/eq}">
	                                    <i class="fas fa-list-alt nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_field')} {:lang('v_manage')}
	                                    	{eq name="controller" value="field"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!-- 客服 -->
	                        {if config('app.isdisplay.chat') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/chat/index',['lang'=>$lang])}" class="nav-link {if $controller eq 'chat' or ($controller eq 'attribute' and $tabledir eq 'chat')}active{/if}">
	                                    <i class="fas fa-headset nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_chat')}
	                                    	{if $controller eq 'chat' or ($controller eq 'attribute' and $tabledir eq 'chat')}<i class="right fas fa-angle-right"></i>{/if}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!-- 广告 -->
	                        {if config('app.isdisplay.ad') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/ad/index',['lang'=>$lang,'signid'=>1,'att_type'=>'banner'])}" class="nav-link {if ($controller eq 'ad' or ($controller eq 'attribute' and $tabledir eq 'ad')) and input('att_type') neq 'link'}active{/if}">
	                                    <i class="fas fa-bullhorn nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_ad')} {:lang('v_manage')}
	                                    	{if ($controller eq 'ad' or ($controller eq 'attribute' and $tabledir eq 'ad')) and input('att_type') neq 'link'}<i class="right fas fa-angle-right"></i>{/if}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <li class="nav-item has-treeview">
                                <a href="{:url('/ad/index',['lang'=>$lang,'signid'=>1,'att_type'=>'link'])}" class="nav-link {if ($controller eq 'ad' or ($controller eq 'attribute' and $tabledir eq 'ad')) and input('att_type') eq 'link'}active{/if}">
                                    <i class="fas fa-link nav-icon fa-fw"></i>
                                    <p>
                                    	{:lang('v_friendlink')}
                                    	{if ($controller eq 'ad' or ($controller eq 'attribute' and $tabledir eq 'ad')) and input('att_type') eq 'link'}<i class="right fas fa-angle-right"></i>{/if}
                                    </p>
                                </a>
                            </li>
                            <!-- 关键词 -->
	                        {if config('app.isdisplay.keyword') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/keyword/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="keyword"}active{/eq}">
	                                    <i class="fas fa-flag nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_keyword')} {:lang('v_manage')}
	                                    	{eq name="controller" value="keyword"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!-- 导航 -->
	                        {if config('app.isdisplay.navigation') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/navigation/index',['lang'=>$lang,'client'=>'pc'])}" class="nav-link {if $controller eq 'navigation' or ($controller eq 'attribute' and $tabledir eq 'navigation')}active{/if}">
	                                    <i class="fas fa-bars nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_navigation')} {:lang('v_manage')}
	                                    	{if $controller eq 'navigation' or ($controller eq 'attribute' and $tabledir eq 'navigation')}<i class="right fas fa-angle-right"></i>{/if}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!-- 地区 -->
	                        {if config('app.isdisplay.area') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/area/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="area"}active{/eq}">
	                                    <i class="fas fa-map-marker-alt nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_area')} {:lang('v_manage')}
	                                    	{eq name="controller" value="area"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!-- 模块 -->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/module/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="module"}active{/eq}">
                                    <i class="fas fa-cubes nav-icon fa-fw"></i>
                                    <p>
                                    	{:lang('v_module')} {:lang('v_manage')}
                                    	{eq name="controller" value="module"}<i class="right fas fa-angle-right"></i>{/eq}
                                    </p>
                                </a>
                            </li>
                            <!-- 文件 -->
	                        {if config('app.isdisplay.filemanage') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/filemanage/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="filemanage"}active{/eq}">
	                                    <i class="fas fa-folder nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_document')} {:lang('v_manage')}
	                                    	{eq name="controller" value="filemanage"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!-- 站点地图 -->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/sitemap/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="sitemap"}active{/eq}">
                                    <i class="fas fa-sitemap nav-icon fa-fw"></i>
                                    <p>
                                    	{:lang('v_sitemap')}
                                    	{eq name="controller" value="sitemap"}<i class="right fas fa-angle-right"></i>{/eq}
                                    </p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <!-- 全局管理 结束 -->
                    {if config('app.isdisplay.parameter') eq 1 or config('app.isdisplay.databackup') eq 1 or config('app.isdisplay.language') eq 1 or config('app.isdisplay.templatemanage') eq 1 or config('app.isdisplay.authgroup') eq 1 or config('app.isdisplay.authrule') eq 1}
                    <!-- 系统管理 开始 -->
                    <li class="nav-item has-treeview 
                        {switch controller}
	                        {case value="config|databackup|language|templatemanage|auth_group|auth_rule"}menu-open{/case}
	                    {/switch}
                    ">
                        <a href="#" class="nav-link 
                            {switch controller}
		                        {case value="config|databackup|language|templatemanage|auth_group|auth_rule"}active{/case}
		                    {/switch}
	                    ">
                            <i class="fas fa-laptop-code nav-icon"></i><p>{:lang('v_system_manage')}<i class="right fas fa-angle-left mt-2"></i></p>
                        </a>
                        <ul class="nav nav-treeview">
                        	<!--参数设置-->
	                        {if config('app.isdisplay.parameter') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/config/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="config"}active{/eq}">
	                                    <i class="fas fa-cogs nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_config_setting')}
	                                    	{eq name="controller" value="config"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!--数据库-->
	                        {if config('app.isdisplay.databackup') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/databackup/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="databackup"}active{/eq}">
	                                    <i class="fas fa-database nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_data')} {:lang('v_backup')}
	                                    	{eq name="controller" value="databackup"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!--语言-->
	                        {if config('app.isdisplay.language') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/language/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="language"}active{/eq}">
	                                    <i class="fas fa-language nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_language')} {:lang('v_manage')}
	                                    	{eq name="controller" value="language"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!--模板-->
	                        {if config('app.isdisplay.templatemanage') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/templatemanage/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="templatemanage"}active{/eq}">
	                                    <i class="fas fa-file-alt nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_template')} {:lang('v_manage')}
	                                    	{eq name="controller" value="templatemanage"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!--会员组-->
	                        {if config('app.isdisplay.authgroup') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/auth_group/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="auth_group"}active{/eq}">
	                                    <i class="fas fa-users nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_authgroup')} {:lang('v_manage')}
	                                    	{eq name="controller" value="auth_group"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                            <!--权限-->
	                        {if config('app.isdisplay.authrule') eq 1}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/auth_rule/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="auth_rule"}active{/eq}">
	                                    <i class="fas fa-briefcase nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_auth')} {:lang('v_manage')}
	                                    	{eq name="controller" value="auth_rule"}<i class="right fas fa-angle-right"></i>{/eq}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                        </ul>
                    </li>
                    <!-- 系统管理 结束 -->
                    {/if}